package admin

import (
	"github.com/gin-gonic/gin"
	"go-api-template/api/http"
	"go-api-template/api/http/v1/admin/menu"
	"go-api-template/api/http/v1/admin/role"
)

func setRoleApi(r *gin.RouterGroup) {
	rg := r.Group("/role")
	{
		rg.POST("/save", http.Handle(&role.SaveReq{}))
		rg.GET("/list", http.Handle(&role.ListReq{}))
	}
}

func setMenuApi(r *gin.RouterGroup) {
	rg := r.Group("/menu")
	{
		rg.POST("/save", http.Handle(&menu.SaveReq{}))
		rg.GET("/list", http.Handle(&menu.ListReq{}))
	}
}
